package com.zy1.ssmfirst.service;

import com.zy1.ssmfirst.pojo.User;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Conditional;
import org.springframework.stereotype.Service;

@ConditionalOnBean(value = User.class)
@Service
public class UserService {
    public  void addUser(){
        System.out.println("增加了一个用户");
    }
}
